// tabBarComponent/tabBar.js
const App = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
        number:App.globalData.number,
      type: Object,
      value: {
        "backgroundColor": "#ffffff",
        "color": "#979795",
        "selectedColor": "#1c1c1b",
        "list": [
          {
            "pagePath": "/pages/index/index",
            "iconPath": "/images/home.png",
            "selectedIconPath": "/images/home-active.png",
            "text": "首页"
          },
          {
            "pagePath": "/pages/category/index",
            "iconPath": "/images/cate.png",
            "selectedIconPath": "/images/cate-active.png",
            "text": "分类"
          },
          {
            "pagePath": "/pages/flow/index",
            "iconPath": "/images/flow.png",
            "selectedIconPath": "/images/flow-active.png",
            "text": "购物车"
          },
          {
            "pagePath": "/pages/user/index",
            "iconPath": "/images/user.png",
            "selectedIconPath": "/images/user-active.png",
            "text": "我的"
          }
        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    // isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false
  },

  /**
   * 组件的方法列表
   */
  methods: {

  },
   /**
   * 组件生命周期声明对象
   */
  lifetimes: {

    /**
     * 在组件实例进入页面节点树时执行
     */
    attached() {
       
    
        this.setData({
            number: App.globalData.number
        })
      
    }

  },

})

